﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WHC.Hotel.Entity;

namespace WHC.Hotel.UI.Report
{
    public partial class FrmEditSignCheckStatus : BaseForm
    {
        public FrmEditSignCheckStatus()
        {
            InitializeComponent();
        }

        private void FrmEditCheckStatus_Load(object sender, EventArgs e)
        {
            this.txtStatus.Items.Clear();
            this.txtStatus.Items.Add(new CListItem("已结账", CheckStatus.已结账.ToString()));
            this.txtStatus.Items.Add(new CListItem("挂账", CheckStatus.挂账.ToString()));
            this.txtStatus.Items.Add(new CListItem("免费", CheckStatus.免费.ToString()));
            this.txtStatus.Items.Add(new CListItem("退单", CheckStatus.退单.ToString()));
            this.txtStatus.Items.Add(new CListItem("签单", CheckStatus.签单.ToString()));

            if (!string.IsNullOrEmpty(this.lblCheckStatus.Text))
            {
                for (int i = 0; i < this.txtStatus.Items.Count; i++)
                {
                    CListItem item = this.txtStatus.Items[i] as CListItem;
                    if (item != null && item.Value == this.lblCheckStatus.Text)
                    {
                        this.txtStatus.SelectedIndex = i;
                        break;
                    }
                }
            }
            else
            {
                this.txtStatus.SelectedIndex = 0;
            }
        }
    }
}
